Skip to content

Fix VT segment numbering#831

Open
sims1253 wants to merge 1 commit into
r-lib:mainfrom
sims1253:fix-vt-segment-numbering
Open

Fix VT segment numbering#831
sims1253 wants to merge 1 commit into
r-lib:mainfrom
sims1253:fix-vt-segment-numbering

Conversation

@sims1253

Copy link
Copy Markdown

Inside segments <- lapply(...), the callback does segmentno = seq_along(segments). At that point the local segments binding does not exist yet, so the symbol resolves to graphics::segments (a closure), and seq_along(<closure>) is 1. The segmentno column is therefore always 1 instead of 1..n.

Found with https://github.com/sims1253/ry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant